import React, { Component } from 'react';
// import { observer } from 'mobx-react';
import store from './store';

// @observer
class ObserverButton extends Component {

  resetCounter = () => {
    store.counter = 0;
  }

  render() {
    return (
      <div>
        <button onClick={this.resetCounter}>Observer Button 组件</button>
      </div>
    )
  }
}

export default ObserverButton;